<%@ page contentType="text/html;charset=utf-8" %>
<jsp:include page="header.jsp">
	<jsp:param name="loginBody" value="login_body"/>
	<jsp:param name="title" value="登陆"/>
</jsp:include>
<form id="loginform" method="post" action="${requestScope.config.site_root}/admin?c=account&a=login">
<div id="main">
	<div id="login_box">
		<ul>
			<li>用户名：<input name="username" type="text" style="width:130px;"></li>
			<li>密　码：<input name="password" type="password" style="width:130px;"></li>
			<li style="padding-left:48px;">
				<input type="submit" name="dosubmit" value=" 登录 " class="btn">
				<input type="reset" name="reset" value=" 清除 " class="btn">
			</li>
			<li style="padding-left:48px;"><a href=""><img src="${requestScope.config.site_root}/static/images/top_qq_login1.gif" border="0" style="vertical-align:middle;"/></a></li>
		</ul>
		
		<p id="tip" style="display:none;color:#ffffff;"></p>
	</div>
</div>
</form>
<%@ include file="footer.jsp" %>
<script type="text/javascript" src="${requestScope.config.site_root}/static/js/jquery.form.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
    jQuery('#loginform').ajaxForm({
    	'success' : function(s) {
    		if(s === '0') {
    			location.href = '${requestScope.config.site_root}/admin';
    			return false;
    		} else {
    			$('#tip').show();
    			$('#tip').html('用户名或密码错误！');
    		}
    	}
    });
});
</script>